package com.glsc.ngateway.common.base.dto.opmanage.report.subscribe;


import com.glsc.ngateway.common.base.domain.mysql.opmanage.report.subscribe.ReportParamConfig;
import com.glsc.ngateway.common.base.domain.mysql.opmanage.report.subscribe.ReportSubscribeInfo;

import java.util.List;

/**
 * @author: qiyr
 * @date: 2022/6/9 13:29
 * @description: 报表订阅信息Dto
 */
public class ReportSubscribeInfoDto extends ReportSubscribeInfo {

    private List<ReportParamConfig> reportParamConfigList;

    public ReportSubscribeInfo toReportSubscribeInfo() {
        return new ReportSubscribeInfo(this.getReportId(), this.getReportName(), this.getReportType(),
                this.getSubscribeStatus(), this.getTitleName(), this.getAttachmentFilename(),
                this.getAttachmentType(), this.getAttachmentTypeStatus(), this.getEmailTemplate(),this.getBiVersion());
    }

    public List<ReportParamConfig> getReportParamConfigList() {
        return reportParamConfigList;
    }

    public void setReportParamConfigList(List<ReportParamConfig> reportParamConfigList) {
        this.reportParamConfigList = reportParamConfigList;
    }
}
